package com.liuchuanzheng.lcz_compose_news.http

import com.liuchuanzheng.lcz_compose_news.api.Api
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

/**
 * @author 刘传政
 * @date 2021/8/2 11:24
 * QQ:1052374416
 * 电话:18501231486
 * 作用:
 * 注意事项:
 */
const val ZHIHU_URL = "http://news-at.zhihu.com/api/"
private val retrofit by lazy {
    Retrofit.Builder()
        .baseUrl(ZHIHU_URL)
        .addConverterFactory(GsonConverterFactory.create())
        .build()
}

object ApiService : Api by retrofit.create(Api::class.java)